#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QTimer>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

#include "addtextdialog.h"
void MainWindow::on_pushButton_insetText_clicked()
{
    addTextDialog addText;
    if(addText.exec() == QDialog::Accepted)
    {

    }
}

#include "addimgdialog.h"
void MainWindow::on_pushButton_insetImg_clicked()
{
    addImgDialog addImg;
    if(addImg.exec() == QDialog::Accepted)
    {

    }
}
#include "savedialog.h"
void MainWindow::on_pushButton_save_clicked()
{
    SaveDialog save;
    if(save.exec() == QDialog::Accepted)
    {

    }
}
#include "settingdialog.h"
void MainWindow::on_pushButton_clicked()
{
    SettingDialog setting;
    if(setting.exec() == QDialog::Accepted)
    {

    }
}
